package com.thyme.domain;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @author thyme
 * @ClassName Bolg
 * @Description TODO
 * @Date 2020/4/29 22:08
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "blog", type = "blog",replicas = 0,refreshInterval = "-1")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    private String content;

}
